Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove critical-section requirement for no_std with atomics #4322

Merged
merged 1 commit into from
Dec 6, 2024

Conversation

daxpedda
Copy link
Collaborator

@daxpedda daxpedda commented Dec 5, 2024

When compiling with no_std and target-feature = "atomics", the link_to! macro, used by wasm-bindgen-futures, requires an implementation of critical-section for once_cell. This was a bit unfortunate, but #4277 was already too big so I left it for a follow-up.

This PR adds a custom implementation for LazyLock.

@daxpedda daxpedda force-pushed the no_std-atomics-critical-section branch from 91a301c to 3e22f1b Compare December 5, 2024 17:18
@daxpedda daxpedda force-pushed the no_std-atomics-critical-section branch from 3e22f1b to d83371e Compare December 6, 2024 12:31
@daxpedda daxpedda merged commit 4e77a61 into rustwasm:main Dec 6, 2024
54 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant